package com.zhihuishu.micro.course.openapi.cc.enums;

public enum ChangePointEnum {
     //第一步
    BACKGROUND(1),//课程背景
    TARGER(2),//课程目标
    DISIGN_PRINCIPLE(3),//课程设计原则
    BASE_INFO(4),//课程基本信息
    //第二步
    COURSE_TEAM(5),//教学团队
    //第三步
    LESSON_VIDEO(6),//节视频
    CHILD_LESSON_VIDEO(7),//子节视频
    //第四步
    MEET_COURSE(8),//见面课
    //第五步
    RULE(9),//考核方法
    //第六步
    MOVIE_CLIPS(10),//课程片花
    MOVIE_DESC(11),//推荐词
    COURSE_IMG(12),//封面图片
    WONFERFYL_VIDEO(13);//精彩视频

    ChangePointEnum(int code){
        this.code=code;
    }
    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
    
    public static ChangePointEnum getEnumByCode(int code){
        ChangePointEnum[] values = ChangePointEnum.values();
        for (ChangePointEnum changePointEnum : values) {
            if (changePointEnum.getCode()==code) {
                return changePointEnum;
            }
        }
        return null;
    }
    
}
